package org.raymond.iworks.study.basic.designpattern.mediator;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
public class Curtains extends Colleague{
    public Curtains(Mediator mediator, String name) {
        super(mediator, name);
        mediator.register(name, this);
    }
    @Override
    public void sendMessage(int stateChange) {

    }
    public void upCurtains(){
        System.out.println("升起窗帘");
    }
    public void downCurtains(){
        System.out.println("降下窗帘");
    }
}
